Fix for travis ci and outofsource build