You do need a license to modify the source, use it internally, and then sell a binary you've produced with the modified source.