Fixes for gpac build OSX.