fixed bugs compiling inline functions