build fixes

easier build on some systems