Fix the GCC assembler options on linux
Update test sample code to work on GCC on different platforms