Trying to make it a proper library but having linker issues