Misc tweaks to make it easier to build and linux stuff.
Note about weird make behaviour