Add simple building script
Gcc 4.8 building fixes