linux and osx assembly fix