Fix portabilty of Buildsystem